//
//  Utils.h
//  YOYOLive
//
//  Created by 王根强 on 2016/10/01.
//  Copyright © 2016年 王根强. All rights reserved.
//

#import <Foundation/Foundation.h>
//#import "RealReachability.h"
#import "NSString+md5.h"
#import "KeyChainStore.h"

@interface Utils : NSObject

+ (NSString *)getUUID;

+ (void)postAppData;

+ (BOOL)stringContainsEmoji:(NSString *)string;

+ (BOOL)isContainNULLStr:(NSString *)string;

+ (BOOL)isPureInt:(NSString*)string;

+ (BOOL)isContainIllegalCharacter:(NSString *)string;

+ (BOOL)isMobileNumber:(NSString *)mobileNum;

+ (BOOL)isValidateEmail:(NSString *)email;

+ (NSString *)uuidString;

+ (BOOL)isNetWorkConnecting;

+ (BOOL)isAreaCode:(NSString *)areaCode;

+ (NSString *)removeSpaceAndNewline:(NSString *)str;

+ (BOOL)validateNumber:(NSString*)number;//只输入数字

+ (BOOL)validateIdCardNumber:(NSString*)number;//只输入数字和Xx

+ (BOOL)validateNumberEnglish:(NSString*)number;//只输入数字和英文

+ (BOOL)checkIdentityCardNo:(NSString*)cardNo;//判断身份证号

+ (NSString *)getShowDateWithTime:(NSString *)time;//时间转换

+ (NSString *)removedStringHuanHang:(NSString *)str;//去除字符串空格回车

+ (NSString *) compareCurrentTime:(NSString *)str;//时间转化 后台给的格式为yyyy-MM-dd HH:mm:ss.SSS

+ (NSString *)genSign:(NSMutableDictionary *)signParams;

+ (void)isMJRefreshHeaderTarget:(id)target WithTableView:(UITableView *)tableView refreshingAction:(SEL)action;//列表下拉刷新
+ (void)isMJRefreshFooterTarget:(id)target WithTableView:(UITableView *)tableView refreshingAction:(SEL)action;//列表上拉加载

+ (UIButton *)accessoryView;//列表右边箭头自定义

+ (void)isMJRefreshCollectionViewHeaderTarget:(id)target WithTableView:(UICollectionView *)collectionView refreshingAction:(SEL)action;//流布局下拉刷新
+ (void)isMJRefreshCollectionViewFooterTarget:(id)target WithTableView:(UICollectionView *)collectionView refreshingAction:(SEL)action;//流布局上拉加载
+ (void)changeUserData;//更新用户信息
//地区选择，重写init方法
@property (nonatomic,strong)NSArray *cities;
@property (nonatomic,copy)NSString *name;
-(instancetype)initWithDic:(NSDictionary *)dic;
+(instancetype)citiesWithDic:(NSDictionary *)dic;


@end
